package team.seekers.oj.course.dto;
import lombok.*;
import org.hibernate.validator.constraints.Length;
import team.seekers.oj.common.entity.BaseDTO;
import team.seekers.oj.lesson.dto.ChapterListDTO;
import team.seekers.oj.lesson.dto.SectionListDTO;

import javax.validation.constraints.NotBlank;
import java.util.List;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class CourseManageDTO extends BaseDTO {

    private Long id;

    @Length(max = 60, message = "标题最大长度为 60")
    @NotBlank
    private String name;

    @NotBlank
    private String description;

    private Long userId;

    private List<Long> participants; // 用户id集合

    private Long participantNum;

    private List<ChapterListDTO> chaptersSections;


}